package cn.edu.zafu.bigdata.x.zbw;

public class TestMathOperations{
    public static void main(String[] args) {
        MathOperations mathOps = new MathOperations();

        // 调用 add 方法，传入两个整数
        int sumInt = mathOps.add(5, 3);
        System.out.println("Sum of two integers: " + sumInt);

        // 调用 add 方法，传入两个浮点数
        double sumDouble = mathOps.add(5.5, 2.3);
        System.out.println("Sum of two doubles: " + sumDouble);

        // 调用 add 方法，传入三个整数
        int sumThreeInts = mathOps.add(5, 3, 2);
        System.out.println("Sum of three integers: " + sumThreeInts);
    }
}